package com.fintech.common.enums;

public enum ReturnCode {
	
	success				("0","success","成功"),
	other_login         ("8888","other_login","账号在另一设备登录"),
	fail				("-1","fail","失败"),
	noData				("-4","no data","无数据"),
	//系统模块
	/**系统错误**/
	systemError       	("10001","System Error","系统错误"),
	
	//用户权限验证模块
	/**Token为空**/
	needToken		  	("20001","Need Token","Token为空"),
	/**Token验证失败**/
	tokenInvalid 	("9999","Token verify failed","用户未登录或者登录超时"),
	;
	
	private String errorCode;
	private String errorName;
	private String errorDescribe;
	private ReturnCode(String errorCode, String errorName, String errorDescribe) {
		this.errorCode = errorCode;
		this.errorName = errorName;
		this.errorDescribe = errorDescribe;
	}
	public String getErrorCode() {
		return errorCode;
	}
	public void setErrorCode(String errorCode) {
		this.errorCode = errorCode;
	}
	public String getErrorName() {
		return errorName;
	}
	public void setErrorName(String errorName) {
		this.errorName = errorName;
	}
	public String getErrorDescribe() {
		return errorDescribe;
	}
	public void setErrorDescribe(String errorDescribe) {
		this.errorDescribe = errorDescribe;
	}
	
	
}
